<template>
  <div>
    <el-breadcrumb separator="/">
      <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item><a href="/">文章管理</a></el-breadcrumb-item>
      <el-breadcrumb-item>文章列表</el-breadcrumb-item>
    </el-breadcrumb>


    <el-card class="box-card">
      <el-table border :stripe="true"
          :data="tableData"
          style="width: 100%">
        <el-table-column
            prop="date"
            label="日期"
            width="180">
        </el-table-column>
        <el-table-column
            prop="name"
            label="姓名"
            width="180">
        </el-table-column>
        <el-table-column
            prop="address"
            label="地址">
        </el-table-column>
      </el-table>
    </el-card>

  </div>


</template>

<script>
console.log(window.location.href)
export default {
  data(){
    return {
      tableData: []
    }
  },
  created(){
    this.getList()
  },methods:{
    async getList(){
      // const{data:res} = await this.$ajax.get('http://lishuaichuang.com/api/article/index')
      // const{data:res} = await this.$ajax.get('http://lishuaichuang.com/api/article/index')
      const{data:res} = await this.$ajax.get(window.location.href)
      console.log({data:res})
      console.log(window.location.href)
    }
  }
}
</script>

<style scoped>

</style>